home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
NotifierModule.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
11KB
|
408 lines
/*
* This file was generated by the SOM Compiler.
* FileName: NotifierModule.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_NotifierModule_xh
#define SOM_NotifierModule_xh
class NotifierModule;
#define NotifierModule_MajorVersion 0
#define NotifierModule_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <Notification.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif
#ifndef NotifierModule_API
#define NotifierModule_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define NotifierModuleCClassData NotifierModuleClassData
#define NotifierModuleNewClass(major,minor) somNewVersionedClassReference(NotifierModule,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define NotifierModuleMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the NotifierModule class object, and the methods it introduces. */
SOMEXTERN struct NotifierModuleClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitializeModule;
somMToken DisposeModule;
somMToken AddNotificationRequest;
somMToken RemoveNotificationRequest;
somMToken CheckCompletedRequest;
somMToken Idle;
} SOMDLINK NotifierModuleClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(NotifierModule_Class_Source) && !defined(SOM_Module_notifiermodule_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list NotifierModuleClassData
#endif
#endif
/*
* -- Typedefs for NotifierModule Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_NotifierModule_InitializeModule)(NotifierModule *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_NotifierModule_DisposeModule)(NotifierModule *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_NotifierModule_AddNotificationRequest)(NotifierModule *somSelf, Environment *ev,
NotificationRef theNotification);
typedef OSStatus (* SOMLINK somTD_NotifierModule_RemoveNotificationRequest)(NotifierModule *somSelf, Environment *ev,
NotificationRef theNotification);
typedef boolean (* SOMLINK somTD_NotifierModule_CheckCompletedRequest)(NotifierModule *somSelf, Environment *ev,
NotificationRef theNotification);
typedef void (* SOMLINK somTD_NotifierModule_Idle)(NotifierModule *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef void (* SOMLINK somTD_NotifierModule_somInit)(NotifierModule *somSelf);
typedef void (* SOMLINK somTD_NotifierModule_somUninit)(NotifierModule *somSelf);
typedef SOMObject* (* SOMLINK somTD_NotifierModule_somDuplicateReference)(NotifierModule *somSelf);
typedef boolean (* SOMLINK somTD_NotifierModule_somCompareReference)(NotifierModule *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_NotifierModule_somRelease)(NotifierModule *somSelf);
typedef void (* SOMLINK somTD_NotifierModule_somFree)(NotifierModule *somSelf);
typedef boolean (* SOMLINK somTD_NotifierModule_somCanDelete)(NotifierModule *somSelf);
typedef SOMClass* (* SOMLINK somTD_NotifierModule_somGetClass)(NotifierModule *somSelf);
typedef corbastring (* SOMLINK somTD_NotifierModule_somGetClassName)(NotifierModule *somSelf);
typedef long (* SOMLINK somTD_NotifierModule_somGetSize)(NotifierModule *somSelf);
typedef boolean (* SOMLINK somTD_NotifierModule_somIsA)(NotifierModule *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_NotifierModule_somRespondsTo)(NotifierModule *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_NotifierModule_somIsInstanceOf)(NotifierModule *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_NotifierModule_somDispatch)(NotifierModule *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_NotifierModule_somClassDispatch)(NotifierModule *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_NotifierModule_somCastObj)(NotifierModule *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_NotifierModule_somResetObj)(NotifierModule *somSelf);
typedef SOMObject* (* SOMLINK somTD_NotifierModule_somPrintSelf)(NotifierModule *somSelf);
typedef void (* SOMLINK somTD_NotifierModule_somDumpSelf)(NotifierModule *somSelf,
long level);
typedef void (* SOMLINK somTD_NotifierModule_somDumpSelfInt)(NotifierModule *somSelf,
long level);
}
#endif /* NotifierModule_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for NotifierModule
*/
class NotifierModule : public SOMObject
{
public:
// NotifierModule::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for NotifierModule, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(NotifierModule);
}
// NotifierModule::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitializeModule */
OSStatus InitializeModule(Environment *ev)
{
return SOM_ResolveD(this,NotifierModule,NotifierModule,InitializeModule)
(this,ev);
}
/* method: DisposeModule */
void DisposeModule(Environment *ev)
{
SOM_ResolveD(this,NotifierModule,NotifierModule,DisposeModule)
(this,ev);
}
/* method: AddNotificationRequest */
OSStatus AddNotificationRequest(Environment *ev,
NotificationRef theNotification)
{
return SOM_ResolveD(this,NotifierModule,NotifierModule,AddNotificationRequest)
(this,ev,theNotification);
}
/* method: RemoveNotificationRequest */
OSStatus RemoveNotificationRequest(Environment *ev,
NotificationRef theNotification)
{
return SOM_ResolveD(this,NotifierModule,NotifierModule,RemoveNotificationRequest)
(this,ev,theNotification);
}
/* method: CheckCompletedRequest */
boolean CheckCompletedRequest(Environment *ev,
NotificationRef theNotification)
{
return SOM_ResolveD(this,NotifierModule,NotifierModule,CheckCompletedRequest)
(this,ev,theNotification);
}
/* method: Idle */
void Idle(Environment *ev)
{
SOM_ResolveD(this,NotifierModule,NotifierModule,Idle)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,NotifierModule,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,NotifierModule,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,NotifierModule,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean NotifierModule_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,NotifierModule,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean NotifierModule_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,NotifierModule,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,NotifierModule,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,NotifierModule,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,NotifierModule,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* NotifierModule */
#endif /* SOM_NotifierModule_xh */